
cmake_minimum_required(VERSION 3.8.0 FATAL_ERROR)

message(STATUS "3RD_LIB_PATH: ${3RD_LIB_PATH}")

###########################################################
# Install 3rd librarys
###########################################################
set(3RD_LIBS
    log4x
    c2com
    )

foreach(var ${3RD_LIBS})
    if(WIN32)
        install(FILES ${3RD_LIB_PATH}/${var}${CMAKE_DEBUG_POSTFIX}.dll   DESTINATION ${INSTALL_3RD_PATH})
    else()
        install(FILES ${3RD_LIB_PATH}/lib${var}${CMAKE_DEBUG_POSTFIX}.so DESTINATION ${INSTALL_3RD_PATH})
    endif()
endforeach()

if(MSVC)
    install(FILES ${3RD_LIB_PATH}/msvcp120${CMAKE_DEBUG_POSTFIX}.dll DESTINATION ${INSTALL_3RD_PATH})
    install(FILES ${3RD_LIB_PATH}/msvcr120${CMAKE_DEBUG_POSTFIX}.dll DESTINATION ${INSTALL_3RD_PATH})
endif()
